import axios from "axios"

export const runCallback = fn => {
  fn('abc')
}

export const createObject = fn => {
  new fn()
}

export const getData = () => {
  return axios.get('http://www.dell-lee.com/react/api/demo.json').then(res => res.data)
}